home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
shared.cst
/
00027_Script_PICT Funct Parent Script
< prev
next >
Wrap
Text File
|
1997-07-24
|
4KB
|
110 lines
--o:Funct PICT
property pCastNum, pPictSprite, pStartSprite, pQTsprite, pSnd, pAreaHotSpotID
property pCursorList, pRelatedHSid
global gModeManager, gInterfaceMgrObj, gAreaManagerObj, gUtilityObj
global gBellCastIndexlst, gGallerylCastIndexlst,gEdisonCastIndexlst,gWattCastIndexlst,gCompileMode
global gInventorIndexNum, gMstrPictIndex, gActiveInventor, whatCastindex
------------------------------------------------------------------------------------------------------------------ò
on birth me
return ( me )
end birth
------------------------------------------------------------------------------------------------------------------ò
on mInit me, aLineFromDataBase, aPICTsprite
set pPictSprite = aPICTsprite
set pRelatedHSid = item 1 of aLineFromDataBase
set CastIndex = value( "#" & item 4 of aLineFromDataBase )
set SndString = item 5 of aLineFromDataBase
if gCompileMode then
set pCastNum = the number of cast ( item 4 of aLineFromDataBase )
addProp(whatCastindex, CastIndex, pCastNum)
if not voidp( SndString ) and (SndString <> empty) then
set SndNum = the number of cast (item 5 of aLineFromDataBase)
set SndIndex = value( "#" & SndString )
addProp(whatCastindex, SndIndex, SndNum)
end if
else set whatCastindex = getprop( gMstrPictIndex,gActiveInventor)
if (SndString <> empty) then
set SndIndex = value( "#" & SndString )
set pSnd = getprop( whatCastindex , SndIndex)
else set pSnd = -1
set pCastNum = getprop( whatCastindex , CastIndex)
set pCursorList = [21:#RETURN,22:#RETURN]
set pActive = false
end mInit
------------------------------------------------------------------------------------------------------------------ò
on mDiscloseFunctionalityType me
return( #PICT )
end mDiscloseFunctionalityType
------------------------------------------------------------------------------------------------------------------ò
on mActivate me
puppetSprite pPictSprite, true
set the castnum of sprite pPictSprite = pCastNum
updatestage
mClearToolMenu ( gInterfaceMgrObj )
mSetCursors(gUtilityObj,pCursorList)
if (the shiftDown) then
if (pSnd = the number of cast "B1919PH.AIF") then
set Snd = getat([the number of cast "BEASTER1.AIF",the number of cast "BEASTER2.AIF"],random(2))
puppetsound 2, Snd
end if
else if (pSnd <> -1) then puppetsound 2, pSnd
mUpdateReturnFrame(gUtilityObj,label("QTVR"))
mDisplayClickText(gInterfaceMgrObj, pRelatedHSid)
cursor -1
end mActivate
------------------------------------------------------------------------------------------------------------------ò
on mClose me
sound stop 2
cursor 4
-- global gQTVRobj
-- mUpdate( gQTVRobj )
mClearText(gInterfaceMgrObj)
mUnSetCursors(gUtilityObj)
puppetSprite pPIctSprite, false
end
------------------------------------------------------------------------------------------------------------------ò
on mClickEvent me
mClose( me )
mChangeMode(gModeManager, #Return)
end mClickEvent
------------------------------------------------------------------------------------------------------------------ò
on mDisclose me
-- put "PIct"
end
------------------------------------------------------------------------------------------------------------------ò
on mSetAreaHotSpotID me, aAreaHotSpotID
set pAreaHotSpotID = aAreaHotSpotID
end mSetAreaHotSpotID
------------------------------------------------------------------------------------------------------------------ò